<?xml version="1.0" ?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
  version="1.0">

<xsl:template name="content-lang">
  <xsl:variable name="charset">
    <xsl:choose>
      <xsl:when test="$lang='chi'">big5</xsl:when>
      <xsl:when test="$lang='chis'">gb2312</xsl:when>
      <xsl:when test="$lang='por'">iso-8859-1</xsl:when>
      <xsl:when test="$lang='eng'">iso-8859-1</xsl:when>
      <xsl:otherwise>iso-8859-1</xsl:otherwise>
    </xsl:choose>
  </xsl:variable>
   <xsl:variable name="clang">
    <xsl:choose>
    <xsl:when test="$lang='chi'">zh-tw</xsl:when>
    <xsl:when test="$lang='chis'">zh-cn</xsl:when>
    <xsl:when test="$lang='por'">pt</xsl:when>
    <xsl:when test="$lang='eng'">en-gb</xsl:when>
    <xsl:otherwise>en-gb</xsl:otherwise>
    </xsl:choose>
   </xsl:variable>
  <meta http-equiv="Content-Type" content="text/html; charset={$charset}" />
  <meta http-equiv="Content-Language" content="{$clang}"/>
</xsl:template>

</xsl:stylesheet>
